-- GENERATED SPELL FOR [Plagued Warrior] --


function spell0_16984(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16984', 571, 1)
end

function Sorts_16984(pUnit, Event)
local choix_sorts_16984 = math.random(0, 0)
if choix_sorts_16984 == 0 then
pUnit:RegisterEvent('spell0_16984', 1, 1)
end
end

function mob16984_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16984', math.random(1500, 3000), 1)
end

function mob16984_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16984_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16984_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16984, 1, 'mob16984_Action')
RegisterUnitEvent(16984, 2, 'mob16984_Leave')
RegisterUnitEvent(16984, 3, 'mob16984_Kill')
RegisterUnitEvent(16984, 4, 'mob16984_Die')
